﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace RRRSRoguelike.Helpers
{
    class Dungeon
    {
        public List<DungeonLevel> Levels;
 
        public Dungeon()
        {
            Levels = new List<DungeonLevel>();
        }


        public static Point AddPoints(Point A, Point B)
        {
            return new Point(A.X + B.X, A.Y + B.Y);
        }
        /// <summary>
        /// Gets the vector between two points
        /// </summary>
        /// <param name="A"></param>
        /// <param name="B"></param>
        /// <returns></returns>
        public static Point GetDistanceVector(Point A, Point B)
        { 
           return  new Point(B.X - A.X,B.Y  - A.Y);
        }

        /// <summary>
        /// always returns positive
        /// </summary>
        /// <param name="A"></param>
        /// <param name="B"></param>
        /// <returns></returns>
        public static int GetDistance(Point A, Point B) 
        {
            Point result = GetDistanceVector(A, B);


            return (Math.Abs(result.X) + Math.Abs(result.Y));
        
        }

    }
}
